package com.mobile.mapper;

import com.github.pagehelper.Page;
import com.mobile.pojo.OderDetailVO;
import com.mobile.pojo.Order;
import com.mobile.pojo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
 * @author Encounter
 * @date 2024/10/10 12:49<br/>
 */
@Mapper
public interface OrderMapper
    {
        /**
         * 动态分页查询预约信息
         *
         * @param queryMap 查询地图
         * @return {@link Page }<{@link Order }>
         */
        Page<OrderVO> query(Map<String, Object> queryMap);
        
        /**
         * 查询由id
         *
         * @param id id
         * @return {@link OderDetailVO }
         */
        OderDetailVO queryById(Integer id);
        
        /**
         * 插入
         *
         * @param order 订单信息
         */
        void insert(Order order);
    }
